import cv2

girl = cv2.imread("../asset/girl.jpeg")
h, w, ch = girl.shape

M = cv2.getRotationMatrix2D((w/2, h/2), 15.0, 0.3)
new_img = cv2.warpAffine(girl, M, (w, h))
while True:
    cv2.imshow('new_img', new_img)
    cv2.imshow('girl', girl)
    key = cv2.waitKey(10)
    if key & 0xFF == ord('q'):
        break

cv2.destroyAllWindows()